﻿<%@ Page Language="C#" MasterPageFile="MyStudy.master" AutoEventWireup="true"
    CodeFile="MyProjectResource.aspx.cs" Inherits="Theme_3_MyProjectResource" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <table width="100%">
        <tr>
            <td>
                方案名称
            </td>
            <td>
                <asp:TextBox ID="txt_ProjectName" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                班级名称</td>
            <td>
                <asp:TextBox ID="txt_ClassName" runat="server" Width="266px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td colspan="2" style="padding-left: 65px;">
                <asp:Button ID="btn_Search" runat="server" Text="搜索" OnClick="btn_Search_Click" Visible="False" /></td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:Repeater ID="rpt_ProjectResource" runat="server" OnItemCommand="rpt_ProjectResource_ItemCommand">
                    <HeaderTemplate>
                        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="mainList">
                            <tr>
                                <th>
                                    资源名称</th>
                                <th>
                                    资源类型</th>
                                <th>
                                    资源数量</th>
                                <th>
                                    学习状态</th>
                            </tr>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <tr>
                            <td>
                                <asp:LinkButton ID="lnkbtn_ProjectName" runat="server" CommandName="lshow" CommandArgument='<%#Eval("ProjectResourceID")%>'><%#Eval("ResourceName")%></asp:LinkButton>
                                &nbsp;
                            </td>
                            <td>
                                <%#Eval("ProjectResourceProresClassName")%>
                                &nbsp;
                            </td>
                            <td>
                                <%#Eval("ResourceCount")%>
                                &nbsp;
                            </td>
                            <td>
                                <%#Eval("ProjectResourcePassStateName")%>
                                &nbsp;
                                <asp:Label ID="lbl_StudentState" runat="server" Text='<%#Eval("ProjectResourceID")%>'
                                    Visible="false"></asp:Label>
                                <asp:Label ID="lbl_ProjectResourceID" runat="server" Text='<%#Eval("ProjectResourceID")%>' Visible="false"></asp:Label>
                                <%--<asp:LinkButton ID="lnkbtn_study" runat="server" CommandName="lstudy" CommandArgument='<%#Eval("ProjectResourceID")%>'>立即学习</asp:LinkButton>--%>
                                <%-- <asp:LinkButton ID="lnkbtn_studyhistory" runat="server" CommandName="lstudyhistory"
                            CommandArgument='<%#Eval("ClassID")%>'>查看学习历史</asp:LinkButton>--%>
                                <asp:Label ID="lbl_rpt_msg" runat="server" Text="" ForeColor="Red"></asp:Label>
                            </td>
                        </tr>
                        <asp:Panel ID="pl_ResourceList" runat="server" Visible="False" Width="95%">
                            <tr>
                                <td colspan="4">
                                    <asp:Repeater ID="rpt_ResourceList" runat="server" OnItemCommand="rpt_ProjectResourceList_ItemCommand">
                                        <HeaderTemplate>
                                            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="mainList" style="font-size: 14px;">
                                                <tr>
                                                    <th>
                                                        资源名称
                                                    </th>
                                                    <th>
                                                        资源类型
                                                    </th>
                                                    <th>
                                                        资源状态
                                                    </th>
                                                </tr>
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <tr>
                                                <td>
                                                <asp:Label ID="lbl_CourseResourceID" runat="server" Text='<%#Eval("CourseresID")%>' Visible="false"></asp:Label>
                                                    <asp:LinkButton ID="LinkButton1" runat="server" CommandName="lstudy" CommandArgument='<%#Eval("CourseresID")%>'><%#Eval("ResourceName")%></asp:LinkButton>
                                                    <%-- <a href='<%#Eval("OpenUrl1")%>' target="_blank" title='<%#Eval("ResourceName")%>'>
                                                        <%#Eval("ResourceName")%>
                                                        &nbsp;</a> --%>
                                                    &nbsp;</td>
                                                <td>
                                                    <%#Eval("CoursersClassName")%>
                                                    &nbsp;</td>
                                                <td>
                                                    <%#Eval("ProjectResourcePlanStateName")%>
                                                    &nbsp;
                                                    <asp:Label ID="lbl_rptlist_msg" runat="server" Text="" ForeColor="Red"></asp:Label>
                                                    </td>
                                            </tr>
                                        </ItemTemplate>
                                        <FooterTemplate>
                                            </table>
                                        </FooterTemplate>
                                    </asp:Repeater>
                                </td>
                            </tr>
                        </asp:Panel>
                    </ItemTemplate>
                    <FooterTemplate>
                        </table>
                    </FooterTemplate>
                </asp:Repeater>
            </td>
        </tr>
    </table>
</asp:Content>
